import request from "@/utils/request.js"
// 登录方法
export function login(data) {
    return request.Request({
        url: '/auth/login',
        method: 'POST',
        data: data
    });
}
// 注册账户
export function newRegister(data) {
    return request.Request({
        url: '/auth/newRegister',
        method: 'POST',
        data: data
    });
}
// 忘记密码
export function forgetPwd(data) {
    return request.Request({
        url: '/auth/forgetPwd',
        method: 'POST',
        data: data
    });
}
// 微信获取手机号登录
 export function wxGetPhone(data) {
     return request.Request({
         url: '/usercenter/user/getPhone',
         method: 'GET',
         data: data
     });
 }